#include "proxy.h"
#include <iostream>
using namespace proxy;

Pursuit::Pursuit(SchoolGirl* m)
{
    this->m_mm = m;
}

void Pursuit::GiveDolls()
{
    std::cout << this->m_mm->getName() << " 送你洋娃娃" << std::endl;
}

void Pursuit::GiveFlowers()
{
    std::cout << this->m_mm->getName() << " 送你鲜花" << std::endl;
}

void Pursuit::GiveChocolate()
{
    std::cout << this->m_mm->getName() << " 送你巧克力" << std::endl;
}

Proxy::Proxy(SchoolGirl* m)
{
    this->m_gg = new Pursuit(m);
}

void Proxy::GiveDolls()
{
    this->m_gg->GiveDolls();
}

void Proxy::GiveFlowers()
{
    this->m_gg->GiveFlowers();
}

void Proxy::GiveChocolate()
{
    this->m_gg->GiveChocolate();
}
